<?php get_header();?>

<!-- page content -->
<div class="container_24 main_container">
    <div class="grid_24" style="overflow: hidden;">
        <div class="breadcrumbs">
            <?php if (function_exists('qt_custom_breadcrumbs')) qt_custom_breadcrumbs(); ?>
        </div>
    </div>
    <div class="grid_24" style="border-bottom: solid 1px #777;margin-top: 5px;"></div>
    <?php 
	if(is_page('cong-trinh')){
	?>
		<?php get_sidebar();?>
		
		<div class="grid_20">
		<div class="projects">
			    <ul class="gallery">
			    	<?php 
			    	$args = array('post_type'=>'post','posts_per_page'=> get_option("posts_per_page"),'paged'=>$paged);
			    	query_posts($args);
			    	
			    	while (have_posts()): the_post();?>
					<?php get_template_part('congtrinh','page');?>	
					<?php endwhile;?>			                
			    </ul>
			    
			    <div class="pagination">
				   <?php echo db_paginate();?>
			    </div>
			    
			</div>
		</div>
		
	<?php 
	}		
	else if(is_page('lien-he'))
	{		
        the_post();
        the_content();
	}	
	else // no is page cong trinh
	{
    ?>    
	    <?php while (have_posts()): the_post();?>
		<?php get_template_part('content','page');?>	
		<?php endwhile;?>
	    
	    <?php get_sidebar();?>
    <?php 
	}
    ?>
</div>
<!-- End page content -->

<?php get_footer();?>